<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<html>
<head>
    <meta charset="UTF-8">
    <title>员工信息</title>
    <link rel="shortcut icon" type="imagges/x-ion" href="staff/info.png"/>
    <!--                                              网页小图标  -->
    <link rel="stylesheet" type="text/css"href="staff/info.css" />
</head>
<body>
<div id="dv">

    <table  cellspacing="0"  class="myTable" id="nav_tab"align="center" >
        <thead  >
        <tr align="left" valign="bottom">
            <td colspan="9" ><h3>&nbsp;员工信息管理</h3></td>
        <tr id="tr2"align="letf-botton" >
            <td  colspan="8" id="ttd" >&nbsp;
                <form id="search-form" action="/Supermarket_war/InforPerfectServlet" method="post">

                    <input type="text"  name="rname" value="Search" id="insearch" onfocus="if (value=='Search'){value=''}" onblur="if (value == ''){value='Search'} "/>
                    <input type="hidden" value="InfoSearch" name="method"/>
                    <button id="search" type="submit"  ></button>

                </form>
            </td>
            <td align="left" >
                <a title="添加" href="register.jsp" >    <!--添加的页面-->
                    <div id="dvadd">
                        <img src="staff/add.png" id="dvaddpc" />
                    </div>

                </a>
            </td>
        <tr id="tr3"  bgcolor="#1976d5" >
            <th >账号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>联系方式</th>
            <th>入职时间</th>
            <th>居住地址</th>
            <th>工资</th>
            <th colspan="2"  >操作</th>
        </thead>
        <tbody class="grid" align="center"  >
        <c:forEach items="${Page.list }" var="item">
            <tr height="60px">
                <td name="uinfoid">${item.uinfoid }</td>
                <td name="rname">${item.rname }</td>
                <td name="gender">${item.gender }</td>
                <td name="phoneNumber">${item.phoneNumber }</td>
                <td name="inductionTime">${item.inductionTime }</td>
                <td name="address">${item.address }</td>
                <td name="salary">${item.salary }</td>

                <td id="td8" >
                    <a id="achange" title="编辑" >
                        <div id="dvchange" align="center">
                            <img src="staff/change.png"  id="imgchange" class="formIcon"onclick="window.location.href='InforPerfectServlet?method=InfoUpdateFind&uinfoid=${item.uinfoid}'">
                        </div>
                    </a>
                        <%--                    <input  id="edit" type="button" value="编辑" onclick="window.location.href='InforPerfectServlet?method=InfoUpdateFind&uinfoid=${item.uinfoid}'">--%>
                </td>
                <td id="td9">
                    <a id="adel" title="删除" >
                        <div id="dvdel" align="center" >
                            <img 	src="staff/del.png" id="imgdel"   class="formIcon" onclick="deletes(${item.uinfoid })"/>
                        </div>
                    </a>
                        <%--                    <button id="delete" onclick="deletes(${item.uinfoid })">删除</button>--%>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</body>
</html>
<script type="text/javascript">

    function deletes(uinfoid){
        alert("确认删除？")
        window.location.href="InforPerfectServlet?method=InfoDelete&uinfoid="+uinfoid;
    }
</script>



